package com.example.service;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

@Service
public interface UserService {

    //根据用户名查询用户
    User getUserByUsername(@Param("username") String username);

    //根据id查询用户
    User getUserById(int id);


}
